package com.spark.invoicings.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;

import lombok.Data;

/**
 * 退货明细表
 * 
 * @author sunyan
 * @email sunyan@gmail.com
 * @date 2024-06-13 11:15:02
 */
@Data
@TableName("t_return_detail")
public class ReturnDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 退货明细id
	 */
	@TableId(type = IdType.AUTO)
	private Integer returnDetailId;
	/**
	 * 所属退货单id
	 */
	private Integer returnOrderId;
	/**
	 * 商品id
	 */
	private Integer productId;
	/**
	 * 本次退货数量
	 */
	private Integer returnQuantity;
	/**
	 * 退货单价
	 */
	private double returnPrice;
	/**
	 * 订单明细id
	 */
	private Integer orderDetailId;
	/**
	 * 应退款金额
	 */
	private double refundAmount;
	@TableField(exist = false)
	private Product product;
	@TableField(exist = false)
	private OrderDetail orderDetail;
	@TableField(exist = false)
	private SalesReturn salesReturn;
    @TableField(exist = false)
	private SalesOrder salesOrder;
	public SalesReturn getSalesReturn() {
		return salesReturn;
	}

	public void setSalesReturn(SalesReturn salesReturn) {
		this.salesReturn = salesReturn;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public OrderDetail getOrderDetail() {
		return orderDetail;
	}

	public void setOrderDetail(OrderDetail orderDetail) {
		this.orderDetail = orderDetail;
	}

	public Integer getReturnDetailId() {
		return returnDetailId;
	}

	public void setReturnDetailId(Integer returnDetailId) {
		this.returnDetailId = returnDetailId;
	}

	public Integer getReturnOrderId() {
		return returnOrderId;
	}

	public void setReturnOrderId(Integer returnOrderId) {
		this.returnOrderId = returnOrderId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getReturnQuantity() {
		return returnQuantity;
	}

	public void setReturnQuantity(Integer returnQuantity) {
		this.returnQuantity = returnQuantity;
	}

	public double getReturnPrice() {
		return returnPrice;
	}

	public void setReturnPrice(double returnPrice) {
		this.returnPrice = returnPrice;
	}

	public Integer getOrderDetailId() {
		return orderDetailId;
	}

	public void setOrderDetailId(Integer orderDetailId) {
		this.orderDetailId = orderDetailId;
	}

	public double getRefundAmount() {
		return refundAmount;
	}

	public void setRefundAmount(double refundAmount) {
		this.refundAmount = refundAmount;
	}
}
